package com.soboot.common.config.redis;

import org.redisson.api.RedissonClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**
 * @Author:
 * @createTime: 2022年09月19日 15:12:23
 * @version: 1.0
 * @Description: redission自动配置
 * @Copyright:
 */
@Configuration
@ConditionalOnClass({RedissonClient.class, RedissonBaseService.class})
public class RedissonAutoConfiguration {
    @Primary
    @Bean
    public RedissonBaseService redissonService() {
        return new RedissonBaseService();
    }
}
